<?php
namespace app\admin\controller;
use think\Controller;

class Base extends Controller
{
	public function checkLogin()
	{
		$except =  $this->request->controller()."/".$this->request->action();
		//echo $except;exit;
		if (!session('admin') && $except != 'Login/index')
		{
			showMsg("请先登录",url("login/index"));
		}
	}
}